<?php

require_once ('Zend\Form.php');

class Application_Form_Customer extends Zend_Form {
	
	public function init() {
		// Set the method for the display form to POST
		$this->setMethod ( 'post' );
		$this->addElement ( 'hidden', 
			'id'
			);
		
		$this->addElement ( 'text', 
			'name', 
			array ('label' => '名称:', 
				'required' => true, 
				'filters' => array ('StringTrim' ) ) );
		
		// Add the taxId element
		$this->addElement ( 'text', 
			'taxId', 
			array ('label' => '税号:',
				'filters' => array('StringTrim')));

		$this->addElement ( 'text', 
			'address', 
			array ('label' => '地址:',
				'filters' => array('StringTrim')));

		$this->addElement ( 'text', 
			'phone', 
			array ('label' => '电话:',
				'filters' => array('StringTrim')));
			
		$this->addElement ( 'text', 
			'bank', 
			array ('label' => '开户行:',
				'filters' => array('StringTrim')));

		$this->addElement ( 'text', 
			'account', 
			array ('label' => '账号:',
				'filters' => array('StringTrim')));
			
		// Add the submit button
		$this->addElement ( 'submit', 'submit', array ('ignore' => true, 'label' => '保存' ) );
			
	}
}

